public class LiteratureBook implements Book{

    double price;
    @Override
    public void getPrice(int page, float discount) {
        price = page * 0.08 * discount;
    }

    @Override
    public void showPrice() {
        System.out.println("文艺书，价格为：" + price);
    }
}
